package demo_04;

import javax.xml.transform.Source;

public class Client {

    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();
        ProxyInvocationHandler proxyInvocationHandler = new ProxyInvocationHandler(userService);
        UserService proxy = (UserService) proxyInvocationHandler.getProxy();
        proxy.add();
        proxy.delete();
        proxy.update();
        proxy.query();

        System.out.println(userService.getClass().getClassLoader());
        System.out.println(userService.getClass().getInterfaces());
    }
}
